import { getAction, deleteAction, putAction, postAction, httpAction } from '@/api/action'

////根路径
// const doMian = "/htpay-merchant/";
////图片预览请求地址
// const imgView = "http://localhost:8080/htpay-merchant/sys/common/view/";

//验证用户是否存在
export const checkOnlyUser = params => getAction('/merchant/checkOnlyUser', params)

//查询订单列表
export const doOrderQuery = params => getAction('/sys/trade/orderQuery', params)
//资费列表查询
export const getRateList = () => getAction('/sys/trade/rateQuery')

//收支明细
export const getIncomeList = params => getAction('/sys/income/statistic', params)
//结算记录
export const getWithdrawList = params => getAction('/sys/income/withdrawList', params)

//获取余额信息
export const getWalletInfo = () => getAction('/sys/income/getWalletInfo')
//获取收款账户list
export const getIncomeActList = params => getAction('/sys/income/getIncomeActList', params)
//校验收款账户是否存在
export const checkIncomeAct = params => getAction('/sys/income/checkOnlyPayeeAct', params)
//新增收款账户
export const addIncomeAct = params => postAction('/sys/income/addIncomeAct', params)
//新增提现记录
export const addWithDrawMoney = params => postAction('/sys/income/addWithdrawMoney', params)

//修改密码
export const updatePassword = params => postAction('/settings/account/updatePwd', params)
//修改提现密码
export const updateWithdrawPwd = params => putAction('/settings/withdraw/updatePwd', params)

//忘记密码身份查询
export const queryUserInfo = params => postAction('/merchant/queryUser', params)

//获取首页数据
export const queryIndexInfo = () => getAction('/sys/info/index')